import { createApp } from 'vue'
import App from './App.vue'
import { router } from '@/router/index.ts'
import 'virtual:svg-icons-register'
import '@mdi/font/css/materialdesignicons.css'
import '@/router/permission.ts'
import store from '@/store'
// Vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import { aliases, mdi } from 'vuetify/iconsets/mdi'
import '@/style/style.css'

const vuetify = createVuetify({
  components,
  directives,
  icons: {
    defaultSet: 'mdi',
    aliases,
    sets: {
      mdi,
    },
  },
})

const app = createApp(App, {
  devtools: true,
})
app.use(router)
app.use(store)
app.use(vuetify)
app.mount('#app')
